Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump got from 13.0.0 to 14.0.0 in /docs #75

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 1, 2023

Bumps got from 13.0.0 to 14.0.0.

Release notes

Sourced from got's releases.

v14.0.0

Breaking

  • Require Node.js 20 (#2313) a004263

Improvements

  • Make followRedirect option accept a function (#2306) 7c3f147

sindresorhus/got@v13.0.0...v14.0.0

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [got](https://github.com/sindresorhus/got) from 13.0.0 to 14.0.0.
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](sindresorhus/got@v13.0.0...v14.0.0)

---
updated-dependencies:
- dependency-name: got
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Dec 1, 2023
Copy link

codecov bot commented Dec 1, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (21893f0) 87.20% compared to head (f8ddc4c) 87.20%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #75   +/-   ##
=======================================
  Coverage   87.20%   87.20%           
=======================================
  Files          32       32           
  Lines        2603     2603           
=======================================
  Hits         2270     2270           
  Misses        269      269           
  Partials       64       64           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@r-hang r-hang merged commit 9ad160e into main Dec 6, 2023
6 checks passed
@r-hang r-hang deleted the dependabot/npm_and_yarn/docs/got-14.0.0 branch December 6, 2023 17:35
r-hang added a commit that referenced this pull request Dec 6, 2023
r-hang added a commit that referenced this pull request Dec 6, 2023
)

This reverts commit 9ad160e.

Post merge CI fails, with
```
yarn install v1.22.21
[1/4] Resolving packages...
[2/4] Fetching packages...
warning [email protected]: Invalid bin field for "url-loader".
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=20". Got "1[6](https://github.com/uber-go/cff/actions/runs/7118151076/job/19380501646#step:4:7).20.2"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error: Process completed with exit code 1.
```
reverting.
JacobOaks added a commit that referenced this pull request Dec 11, 2023
We have to revert #75 because got 14.0.0 requires node 20.
This diff updates to node 20 for the docs github workflow.
It also re-upgrade got to 14.0.0.
JacobOaks added a commit that referenced this pull request Dec 11, 2023
We have to revert #75 because got 14.0.0 requires node 20.
This diff updates to node 20 for the docs github workflow.
It also re-upgrade got to 14.0.0.
JacobOaks added a commit that referenced this pull request Dec 11, 2023
We have to revert #75 because got 14.0.0 requires node 20.
This diff updates to node 20 for the docs github workflow.
It also re-upgrade got to 14.0.0.
JacobOaks added a commit to JacobOaks/cff that referenced this pull request Dec 11, 2023
We have to revert uber-go#75 because got 14.0.0 requires node 20.
This diff updates to node 20 for the docs github workflow.
It also re-upgrade got to 14.0.0.

Initially, this causes another issue when building the docs:
```
tip Apply plugin mermaidjs (i.e. "vuepress-plugin-mermaidjs") ...
[info] [webpackbar] Compiling Client
[info] [webpackbar] Compiling Server
/home/runner/work/cff/cff/docs/node_modules/loader-runner/lib/LoaderRunner.js:114
			throw e;
			^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:68:19)
    at Object.createHash (node:crypto:138:10)
    at module.exports (/home/runner/work/cff/cff/docs/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/home/runner/work/cff/cff/docs/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/home/runner/work/cff/cff/docs/node_modules/webpack/lib/NormalModule.js:471:10)
    at /home/runner/work/cff/cff/docs/node_modules/webpack/lib/NormalModule.js:503:5
    at /home/runner/work/cff/cff/docs/node_modules/webpack/lib/NormalModule.js:358:12
    at /home/runner/work/cff/cff/docs/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/home/runner/work/cff/cff/docs/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/home/runner/work/cff/cff/docs/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
    at /home/runner/work/cff/cff/docs/node_modules/loader-runner/lib/LoaderRunner.js:236:3
    at context.callback (/home/runner/work/cff/cff/docs/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /home/runner/work/cff/cff/docs/node_modules/cache-loader/dist/index.js:134:7
    at /home/runner/work/cff/cff/docs/node_modules/graceful-fs/graceful-fs.js:61:14
    at FSReqCallback.oncomplete (node:fs:189:23) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
```

This is apparently a known issue with Node >16.
Refs:
* https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported
* vuejs/vuepress#3136

We can workaround this issue by setting `NODE_OPTIONS=--openssl-legacy-provider`
when building the docs, which this PR also does.

I tested the docs workflow using this branch and the env var set,
and it completed successfully:
https://github.com/uber-go/cff/actions/runs/7172095319
r-hang pushed a commit that referenced this pull request Jan 6, 2024
…79)

We had to revert #75 because got
14.0.0 requires node 20.
This PR updates to node 20 for the docs github workflow.
It also re-upgrade got to 14.0.0.

This caused another issue when building the docs:

```
tip Apply plugin mermaidjs (i.e. "vuepress-plugin-mermaidjs") ...
[info] [webpackbar] Compiling Client
[info] [webpackbar] Compiling Server
/home/runner/work/cff/cff/docs/node_modules/loader-runner/lib/LoaderRunner.js:114
			throw e;
			^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:68:19)
    at Object.createHash (node:crypto:138:10)
    at module.exports (/home/runner/work/cff/cff/docs/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/home/runner/work/cff/cff/docs/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/home/runner/work/cff/cff/docs/node_modules/webpack/lib/NormalModule.js:471:10)
    at /home/runner/work/cff/cff/docs/node_modules/webpack/lib/NormalModule.js:503:5
    at /home/runner/work/cff/cff/docs/node_modules/webpack/lib/NormalModule.js:358:12
    at /home/runner/work/cff/cff/docs/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/home/runner/work/cff/cff/docs/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/home/runner/work/cff/cff/docs/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
    at /home/runner/work/cff/cff/docs/node_modules/loader-runner/lib/LoaderRunner.js:236:3
    at context.callback (/home/runner/work/cff/cff/docs/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /home/runner/work/cff/cff/docs/node_modules/cache-loader/dist/index.js:134:7
    at /home/runner/work/cff/cff/docs/node_modules/graceful-fs/graceful-fs.js:61:14
    at FSReqCallback.oncomplete (node:fs:189:23) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
```

This is apparently a known issue with Node 17.0.0+, which upgrades Node
to OpenSSL 3.0. This new version disallows certain legacy operations
found to be vulnerable to security attacks.
*
https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V17.md#17.0.0
* vuejs/vuepress#3136

We can workaround this issue by setting
`NODE_OPTIONS=--openssl-legacy-provider`
when building the docs, which this PR also does.
This is not an ideal solution as using the older OpenSSL version.

The issue is resolved by upgrading the other dependencies in our
yarn.lock.

---------

Co-authored-by: Abhinav Gupta <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Development

Successfully merging this pull request may close these issues.

1 participant